#include"List.h"


void test()
{
	ListNode* head = ListInit();
	//ListPushBack(head, 1);
	//ListPrint(head);
	//ListPushBack(head, 2);
	//ListPushFront(head, 0);
	//ListPopBack(head);
	//ListPrint(head);
	//ListPopFront(head);
	//ListPopFront(head);
	//ListPrint(head);
	ListPushBack(head, 1);
	ListPushBack(head, 2);
	ListPushBack(head, 3);
	ListPushBack(head, 4);
	ListPushBack(head, 5);
	ListPushBack(head, 6);
	ListPushBack(head, 7);
	ListPushBack(head, 8);
	ListPushBack(head, 9);
	ListPushBack(head, 10);
	ListPushBack(head, 11);
	ListPrint(head);
	ListErase(ListFind(head, 11));
	ListPrint(head);
	ListErase(ListFind(head, 1));
	ListPrint(head);
	ListErase(ListFind(head, 6));
	ListPrint(head);
	//ListErase(ListFind(head, 15));
	ListPrint(head);
	ListDestory(&head);
}

int main()
{
	test();
	return 0;
}